<!DOCTYPE html>
<html>
<head>
<title>参数管理</title>
[#include "/WEB-INF/admin/include/common.html"]
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>参数管理</h5>
            </div>
           	<form id="listForm" action="list" method="get">
	            <div class="ibox-content">
	                <!-- 搜索 start -->
	                <div class="form-horizontal clear">
	                    <div class="form-group">
	                        <label class="col-sm-1 control-label">参数组：</label>
	                        <div class="col-sm-2"><input class="form-control" type="text" name="subgroup" value="${subgroup}"></div>
	                    </div>
	                    <div class="text-center">
                        	<input type="submit" class="btn btn-primary btn-w-m" value="查 询">
                        	<input type="reset" class="btn btn-primary btn-w-m" value="重 置">
                       	</div>
	                </div>
	                <!-- 搜索 end -->
	                <!-- 列表 start -->
	                <div class="form-horizontal clear">
	                    <div class="form-group">
	                        <div class="col-sm-8">
	                        	<a class="btn btn-primary" href="add"><i class="fa fa-plus"></i> 添加</a>
	                            <a href="javascript:;" class="btn btn-warning disabled" id="deleteButton"><i class="fa fa-trash"></i> 删除</a>
	                            <a href="javascript:;" class="btn btn-primary" id="refreshButton"><i class="fa fa-refresh"></i> 刷新</a>
	                        </div>
	                    </div>
	                    <div class="table-responsive">
	                        <table class="table table-bordered" id="listTable">
	                            <thead>
	                                <tr>
	                                	<th width="40" class="text-center"><input type="checkbox" id="selectAll" /></th>
	                                	<th>ID</th>
	                                    <th>参数组</th>
	                                    <th>绑定分类</th>
	                                    <th>参数名称</th>
	                                    <th>排序</th>
	                                    <th>创建日期</th>
	                                    <th>操作</th>
	                                </tr>
	                            </thead>
	                            <tbody>
	                            	[#list page.list as parameter]
	                                <tr>
	                                	<td class="text-center"><input type="checkbox" name="ids" value="${parameter.id}" /></td>
	                                	<td>${parameter.id}</td>
	                                	<td>${parameter.subgroup}</td>
	                                	<td>${parameter.productCategory.name}</td>
	                                	<td>
	                                		[#list parameter.names as name]
												${name}
												[#if name_index > 5]
													...[#break /]
												[/#if]
											[/#list]
	                                	</td>
	                                	<td>${parameter.sort}</td>
	                                	<td>${parameter.createDate}</td>
	                                    <td>
	                                        <a href="edit?id=${parameter.id}">[编辑]</a>
											<a href="add?sampleId=${parameter.id}">复制</a>
	                                    </td>
	                                </tr>
	                                [/#list]
	                            </tbody>
	                        </table>
	                    </div>
	                </div>
	                <!-- 列表 end -->
	            </div>
            </form>
        </div>
    </div>
</body>
</html>